package com.tanhua.service;

import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;
import org.bson.types.ObjectId;

import java.util.List;

/**
 * @author げっしょく
 * @date 2021/10/27
 */
public interface CommentApi {
    Integer save(Comment comment);

    List<Comment> getComments(Integer page, Integer pagesize, ObjectId movementId);

    Boolean getOperation(Long userId, ObjectId movementId, CommentType commType);

    Integer delete(Comment comment);

    Boolean getComment(ObjectId id);

    Comment saveComment(Comment comment);

    Comment deleteComment(Comment comment);

    List<Comment> getSubject(Integer page, Integer pagesize, Long id, CommentType commentType);

    Comment saveVideo(Comment comment, CommentType commentType);

    void deleteVideo(Comment comment, CommentType commentType);
}
